Sri Lanka's immediate problem is not lack of tea or rice, it's that they're out of money and can't pay for imports of essentials like fuel. In other words, a currency crisis.
They're not making enough money to pay for imports because they're not producing enough. If they were producing enough then they wouldn't need to borrow money to pay for imports, so the cost of borrowing wouldn't matter.