System Preferences → Trackpad → Scroll & Zoom → enable Rotate.
Open an image in Preview → Tools → Annotate → Text.
After entering desired text and with the text box still selected, use the rotate gesture to turn it as desired.
For more fine-grained control, use Pixelmator (Add text on a path) or Acorn (Path Text | video tutorial).
H/T: blueswirly and Zabobon
/mac | Sep 08, 2022