Puyol, 34, experienced discomfort after Saturday's 4-0 defeat of Espanyol and will now go under the knife.
On the club's official website, Barca explained Puyol decided to "undergo an arthroscopy on May 12" and that the approximate recuperation period is six weeks.
Spain coach Vicente Del Bosque will name his final squad on May 27.