Repeat after me:
I have to have a medical procedure and the doctor says I must be out of work for x time.
To your supervisor - I will bring in the medical note as soon as I have it, but wanted to let you know for scheduling purposes.
To your coworkers - I'm having a medical procedure and I will be out for x time. Thank you so much for your concern and asking about it, but I don't want to discuss my medical issues with anyone other than my doctor.
Assuming you are in the US and you work for an employer of more than 50 people, they cannot force you to say anything else. If co-worker's push, say - did you have sex last night? When they are shocked explain that you feel the same way about your medical issues - they are private and no one else's business. I only had to do that once. It worked.