I'd feel inclined to suggest Exact Audio Copy (
http://www.exactaudiocopy.de/) for Windows, there's a nice guide (
Thread 91868) to help through its configuration.
I suggest not going to their official site.
They've had quite a few attacks on their site where it's been hijacked and replaced "drug ads".
Use mirror sites to check and download updates.
EAC on VideoHelp.com (
http://www.videohelp.com/tools/Exact-Audio-Copy)
I swear by EAC. It provides the most accurate, GAPLESS, CD ripping.
Foobar, I think, can use the AccurateRip database, though I've never even thought about using Foobar to rip CDs.
EAC is also good in that takes your specific drive into consideration.
Every drive is different and has unique "offsetting" values.
EAC will use those offsetting values to help properly align music tracks and get the right gapless playback.
Once it's setup, you don't have to worry about anything else other than finding the gap values for each CD.