To rim the martini glass with sugar, begin by moistening the rim with a slice of grapefruit or by dipping it in water. Then, gently dip the rim into a shallow dish containing white sugar. Rotate the glass to ensure an even coating of sugar around the rim. This adds a touch of sweetness and visual appeal to your grapefruit martini.