Have you measured for a fit? Cause I don't think either the 240 or 300 I-6's will fit in a Ranger engine bay...too long unless you extend the front of the bay somehow. However, a Ford 220 I-6 out of a mid-60's small car (Falcon, Mustang, etc.) might fit and maybe the slant six that Dodge put in the original Darts. As for wiring, I would get a wiring harness made for the simpler I6 motor and install that with it's own battery and then figure out how to run the Ranger electronics off the alternator and second battery. The old I-6's had like 12 wires, tops...and most of those fed just a handful of stuff (headlights, blinkers, cig. lighter, radio, heater/ac) cause there weren't many options like power windows/seats, etc.
Measure and find a six that will fit before you spend any moolah...otherwise you might be disappointed. There are several online forums for the I-6 engines...including one right here on the main forum page.