On a Dodge Ram Cummins 24-valve diesel engine, the camshaft position sensor (CMP sensor) is located on the
front of the engine, on the cylinder head. It's usually near the top of the timing cover, pointed towards the front of the truck. It's a relatively easy sensor to access once you've removed some covers and possibly the serpentine belt.
However, the exact location might vary slightly depending on the specific year and model of your Dodge Ram. It's always best to consult a repair manual specific to your truck's year and engine for a precise location and detailed instructions. A diagram in the manual will be invaluable.