I was talking to a theoretical Physics PhD at a conference recently, and even he was quite jaded (he switched to CS post PhD). It was obvious that this person was wicked smart and had quant knowledge. So if you want a PhD for transferable skills, go for it! A masters might be faster though.
Do what makes you happy at the end.. it is sort of nice I can drop in the fact I have a PhD and it was probably good for me on the whole .. but if you are thinking of getting a PhD in CS, consider attending top conferences in your field before committing (e.g. SOSP for OS/Systems, CVPR for vision, CHI for HCI,...). I just had no clue what I was getting into and I actively wish someone had given me this sort of info before I got into it. A PhD has a huge opportunity cost.