Professing to be wise, they became fools,
Professing themselves to be wise, they became fools,
Claiming to be wise, they became fools [professing to be smart, they made simpletons of themselves].
While they were claiming to be wise, they made fools of themselves.
For, while proclaiming themselves to be wise, they became foolish.