Lester will leave spring training in West Palm Beach, Florida, and fly to New York for the procedure.
Martinez said the 37-year-old starting pitcher is expected to be back at camp in about five to seven days.
In 2006, Lester’s rookie season with the Boston Red Sox ended early because he was diagnosed with a form of lymphoma. He had chemotherapy and returned the next season.
He is entering his 16th year in the majors. Lester was a free agent and joined the Nationals on a $5 million, one-year contract after playing the past six seasons with the Chicago Cubs.