Make sure you guitar is electric or electro-acoustic. You need a lead(cable) to connect guitar to your mac book. they basically ship with 3.3mm jack. You should connect one end to the guitar. Now for the next end you need to buy a adapter.
(1/4” to 1/8” Adapter - Record an Electric Guitar on Mac)
http://cgi.ebay.co.uk/1-4-to-1-8-Adapter-Record-an-Electric-Guitar-on-Mac_W0QQitemZ280221577486QQcmdZViewItem
Now you should be fancy enough to connect your guitar to mac line in port and get your Mac busted

LoL
Rock on!!!!!!!!!