It suggests that something is extremely expensive, almost as if it costs a body part!
Here are some examples of how it's used:
* "That new car cost me an arm and a leg."
* "They're charging an arm and a leg for a simple haircut these days."
* "I'd love to go on that trip, but it would cost an arm and a leg."