The golden code/comment ratio is the intersection of
- comments needed to remind yourself of things you had in mind while coding
- comments needed to remind others of things you had in mind while coding
- comments your customer is willing to pay for (because good comments cost time)
- the developer's interest in producing obfuscated code because of job safety (if he or she is working for a company where a developer can get away with it)
This also shows why that ratio is different for every project and every team.