Exbass is right. Ranger is only slightly less so.
The M5 is a very strong trans. The SOHC version would probably stand up to a 5.0 for a while, since at peak breaking (getting you rolling) torque the 4.0 SOHC and the 5.0 are pretty equally matched. But eventually your 5.0 would break that trans.
The bigger problem is as exbass said, the trans simply won't bolt to a 5.0. There is no removable bell, there is no adapter to make it happen.
Look for a Tremec T-5 out of a 150, then go look for a 2wd, manual S-10 with the BW T-5 and take it's tail housing. Both versions are almost the same thing, and that tail shaft housing will make it fit like it's supposed to be there.