Ruby supports single-line comments starting with # and multiline comments using =begin and =end. Single-line comments extend from # to the end of the line. Multiline comments can span multiple lines between =begin and =end tags. Trailing comments should be aligned and separated from code for clarity.