This article explains how to place text on a path or inside a shape in Adobe Photoshop CC 2019 and later.
How to Type and Format Text Along a Path in Photoshop
How to Place Text on a Path in Photoshop:
Select one of the shape tools from the toolbox.
Draw the path for the text. When the Properties palette opens after you release the mouse button, set the Fill Color to None and the Stroke Color to Black.