"My dear Watson, I cannot agree with those who rank modesty among the virtues. To the logician, all things should be seen exactly as they are, and to underestimate one’s self is as much a departure from truth as to exaggerate one’s own powers."
Holmes is basically saying, “Why be modest when I’m just that great?” His confidence and dry humor really shine through!