suggests that
people who disregard social conventions or speak without restraint may sometimes voice truths that others are unwilling to express. This is a traditional saying, not a claim about mental illness.
The saying “Fools and madmen speak the truth” can be used when fools and madmen don't prepare or consider their sayings, so they speak the truth.