Modern Railcar Prices and Lease Rates - Trains Magazine
After some quick poking around the 'Net, I come to the same conclusion that one link did - it's very hard to answer - rather like asking how much an automobile costs. Do you want a sedan, coupe, SUV, crossover, etc, etc...
Given that what XYZ Shipping Corp paid for that last batch of cars they got was dependent on features, number ordered, cost of materials, and even the speed with which they wanted the cars delivered, all you'll get will be a ball-park figure. But if that's all you're looking for, great!
I'd suggest you go to the manufacturer's websites and look for an email address. Ask them straight out for such a ball-park number. They might say no, or they might just tell you what you want to know. Be somewhat specific - f'rinstance, ask for the "catalog" price for a given common car. Note to them that you know there are numerous variables.
You might get some kind PR or sales type who is willing to spend a few minutes on an answer.
For locomotives, try Ozark Mountain Railcar. They get a variety of equipment.