The last time I replaced a 5.7l in a Ram the junk yard engine : 75k miles, intake, t-body, fuel rail and injectors, coils, timing cover, water pump, oil pan, flex plate, ex. manifolds, and 1yr warranty was $3400.
I've found similar on Craigslist minus the warranty in the $2500 range.