Painting is an option, but it's a costly, large task. Instead of painting your entire ceiling, try this two-ingredient hack from TikTok user @yourgotorealtor.
After a few seconds, wipe the spot dry with a clean rag or towel, then repeat if necessary. The water stains should disappear as easily as that, no muss, no fuss.