I'm sure there's a post somewhere else on this forum, but here's what you need to do:
1) Download the Samsung SSD Firmware update for yours from this site and burn it to a DVD-R (the Mac and PC ISO versions are the same - some weird Linux-wrapped DOS executable):
http://www.samsung.com/global/business/semiconductor/samsungssd/downloads.html
2) Install the drive in your computer using these basic steps (it's the same size and fit as a hard drive, although might be a bit thinner):
http://www.ifixit.com/Guide/MacBook+Pro+13-Inch+Unibody+Mid+2012+Hard+Drive+Replacement/10378
3) Boot from the firmware DVD you made and follow the on-screen prompts to make sure you're running the latest firmware (it's always easier to do this first)
4) Once that's done, you'll need to erase and either install a fresh copy of the OS, or clone your other drive to the new one. I recommend booting off your old drive externally using a SATA-to-USB adapter (Amazon sells these for $20-$30) - you can pick your old drive while starting up and holding down the Option key.
5) Erase your SSD using Disk Utility - make sure you partition it using GUID and format as Mac OS Extended (Journaled):
http://www.macworld.com/article/2055589/how-to-format-a-startup-drive-for-a-mac.html
6) For creating a bootable clone of your original drive, I recommend using Super Duper:
http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html - you may even want to install this before you start the project so it's already on your old drive.
7) Reboot from your SSD and make sure everything works.
8) Enable TRIM, which will allow your drive to run using its built-in garbage collection tools - I like TRIM Enabler:
http://www.cindori.org/software/trimenabler/ In free mode, it will enable TRIM, which is enough - the extra features are available if you buy the full version. Keep in mind that with every major OS update (10.9.0->10.9.1->10.9.2), you'll need to re-enable TRIM each time.