Contribute if you believe you have an out-of-the-box perspective that adds to the discussion. Avoid "me-too" or "actually you're wrong" type of comments unless - again - you can add some new factual commentary; seek to enrich others rather than being motivated to stroke your own ego by putting others down.
Sometimes, one does not in fact have something meaningful to say despite urges to the contrary. Learning when not to speak is also an art. So is learning to listen and internalizing points of view that you may not agree with. A good rule of thumb that serves me well is to always assume everything is grayscale. There's always some dimension or nuance you're not considering.
Mind you, I'm not accusing you of any specific behavior, just speaking in generalities.