For the simple syrup, heat all ingredients in a saucepan until cranberries are tender but haven’t burst. Strain, let cool, and store in the refrigerator.
For the margarita, combine all ingredients in an ice-filled shaker. Shake well and strain into an ice filled rocks glass.