Did you have cosmetic surgery?
Usually, people don’t put up a billboard to announce that they had work done because most prefer keeping this kind of information as close to their chest as best they can. By asking this question, we might come across as implying something about their looks. A positive compliment where applicable is appropriate without going into details.