Flash helps... alotSo does a high ISO on the camera, a fast shutter speed. Oh, can't forget luck
If you are interested here are the details:
Shot with a canon 30D DSLR camera and a Canon 100mm f/2.8 macro lens stopped down to f/8 (the lens has a very shallow depth of field) ISO was set to 400. Shutter speed 1/200 sec and on board flash. I also have a removable flash unit that I don't use as much as I should. I should set up a light tent