2004-2006 3.0l Rangers could have defective exhaust valve seats
If its DIY then call local machine shops and ask for the price of a valve job, including new valve seats, also time frame
Machine shops don't pull the heads, or engines, they rebuild those parts, mechanics or YOU do the grunt work and drop off the parts
Then price out a new set of heads, complete,(includes installed valves)
Then you make the decision
Machine shop might be a week to 10 days from when you drop off the heads, to get them back
New heads can be on hand so you can remove and replace the old heads and be driving in 1 to 2 days
Heads are HEAVY, so include shipping cost AND return cost, new heads usually have a CORE charge so you have to send back in your old ones
Swapping heads is a job a Mobile Mechanic can do at your home, if its allow by your HOA, lol
Its Free to call a few and ask the price