To enable template path hints in Magento 2 follow these steps:
1. Make sure your Magento 2 is in the default or developer mode (How to enable Developer Mode in Magento 2).
2. Go to Admin Panel > Stores > Settings > Configuration > Advanced > Developer > Debug.