You don't always get a clearcut case like that, but the key, as @bdunn mentioned, is that you need to help the customer in a way that other commodity providers can't. Writing Ruby code or working with Photoshop is a commodity. The market sets the rate for those services. But if you can use those skills to reduce costs, increase web conversions, etc, you can provide increased differential value.
I've helped a lot of small business owners work through these scenarios, and then come up with numbers that "don't feel right." They don't want to charge what they're worth. Then we have a conversation like this:
"I agree with you that it's worth it, but I just don't feel like I can charge that much."
"Why not?"
"It just doesn't feel right?"
"You believe in helping your clients, right?"
"Of course."
"Would charging the higher rate help you provide more resources and increase the customer's return?"
"Probably."
"So why are you so hung up on your own feelings that you're hurting your clients by not charging them properly?"
OK, it's a bit silly, but it's a real conversation I've had many times. When they are convinced in their head but not in their gut, I ask them to literally practice talking about price in front of a mirror. Do it so that it sound confident, comfortable, and unapologetic. Your customer is getting a great deal! Of course they should want to do this. Steve Jobs never apologized for the fact that a Mac had a higher price than many PCs-- it was just a great deal if you wanted to do certain things.
Feedback is that practicing in front of a mirror really helps. ;-)