Place cocktail glass in freezer to chill. Combine the ingredients in a shaker, fill it halfway with ice, and stir or shake vigorously until well chilled, about 20 seconds. Remove the glass from the freezer, coat the rim with sugar, strain into the chilled glass.