The inaugural Maradona Cup will take place at Mrsool Park in Riyadh on 15 December, a little over a year after the former Argentina star died in his homeland at the age of 60 from heart failure a fortnight after undergoing brain surgery.
Maradona played for Boca in 1981-1982 before moving to Europe with Barca, where he won the Copa del Rey, the Copa de la Liga and the Supercopa de Espana.
He returned to Boca for the final two years of his career before retiring in 1997.
The match will take place in the week after Barca face Bayern Munich away in their final Champions League group game, with a LaLiga game at Osasuna scheduled for December 11.
Ronald Koeman's side will be due back in Saudi Arabia in January 2022 for the Supercopa de Espana along with Real Madrid, Atletico Madrid and Athletic Bilbao.
Barca and Boca have met 10 times previously, most recently in the Joan Gamper exhibition game in 2018, which the Catalans won 3-0.