Code comments are invaluable in the DevOps process as they serve as inline documentation, providing immediate context for the code. They are particularly useful in complex codebases where understanding the functionality of a piece of code could be time-consuming. Code comments ease the process of code reviews, aid in debugging, and can be crucial during incident response when quick decisions are needed.