Would weight loss surgery be covered by medicare?

Insurance benefits. Medicare typically does not cover bariatric procedures. However, the patient is encouraged to seek this answer, about coverage, payments, copays, deductibles directly from their insurance carrier. Most insurance companies have websites where you can find the answer or a number to call.
Yes. You have to meet specific criteria, and have the operation done at specific centers - called centers of excellence.