Because the exact location can vary slightly depending on the specific engine (there were a few different 4-cylinder options for that year), a visual inspection with the help of a repair manual or a diagram specific to your engine is recommended. You can find diagrams online by searching for "[your engine code] Ford Ranger camshaft position sensor location" replacing "[your engine code]" with the code found on your engine. This code is usually stamped on a metal plate on the engine block.