This Questions seems open ended so i will answer in all ways:-
1) To Draw as Path :-
Path can be drawn by selecting any shape tool, after slecting the shape go to the dasboard which has a dropdown which says ("shape" "Path" "Pixels") by selecting the path option.
2) To Write in a Drawn path -
select the pen tool, after slecting the shape go to the dasboard which has a dropdown which says ("shape" "Path" "Pixels") by slecting the path option then draw the path as you like then go to the direct slection tool so that the path gets deslected.Then select the text tool take and bring it near the path if the path is complete then the curser will have small dotted circle around which means the text will fill inside the path shape,if the path is not complete then it will have dotted curl line below the curser and the text will be drawn along the path.