NEW YORK (AP) -- H.J. Heinz (UNKNOWN:HNZ.DL) has agreed to be acquired by an investment group including billionaire investor Warren Buffett in a deal valued at $23.3 billion.

The ketchup company says it's the largest deal ever in the food industry. Heinz shareholders will receive $72.50 in cash for each share of common stock they own. The transaction value includes the assumption of Heinz's debt. Based on Heinz's number of shares outstanding, the deal is worth $23.3 billion excluding debt.

"It's our kind of company," Buffett said in an interview on CNBC, noting its signature ketchup has been around for more than a century. "I've sampled it many times."

In addition to its ketchup, Heinz makes Classico spaghetti sauces, Ore-Ida potatoes, and Smart Ones frozen meals. Berkshire Hathaway (NYSE:BRK-A)(NYSE:BRK-B) and 3G Capital, the investment firm which also bought Burger King in 2010, say Heinz will remain headquartered in Pittsburgh.

Given the saturated North American market, Heinz has increasingly looked to emerging markets for growth. In its last quarter, the company said emerging markets made up 23 percent of sales.

The per-share price for the deal represents a 20 percent premium to Heinz's closing price of $60.48 on Wednesday. Heinz said the deal was unanimously approved by its board. Buffett said on CNBC that Berkshire is putting $12 billion to $13 billion into the deal. But he noted that Berkshire will still have room to make more acquisitions, noting that its businesses continually replenish its cash supply.

"Anytime we see a deal is attractive and it's our kind of business and we've got the money, I'm ready to go," Buffett said.

The deal is expected to close in the third quarter.

The Motley Fool recommends Berkshire Hathaway and H.J. Heinz Company. The Motley Fool owns shares of Berkshire Hathaway. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.